package com.piccolo.wrapper.client.component.JSNI;

import com.piccolo.wrapper.client.component.Overlay.PEdgeOverlay;
import com.piccolo.wrapper.client.component.Overlay.PNodeOverlay;

public class PEdgeJSNI 
{
	public native PEdgeOverlay create(PNodeOverlay theNode1, PNodeOverlay theNode2) 
	/*-{ return new $wnd.PEdge({node1: theNode1, node2: theNode2}); }-*/;

	public native PEdgeOverlay create(PNodeOverlay theNode1, PNodeOverlay theNode2, int theLineWidth) 
	/*-{ return new $wnd.PEdge({node1: theNode1, node2: theNode2, lineWidth: theLineWidth}); }-*/;

	public native void setLineWidth(PEdgeOverlay self, int theLineWidth) 
	/*-{ self.lineWidth = theLineWidth; }-*/;
}
